package org.icosagon.core.character.traits;

import org.icosagon.core.Modifiable;

/**
 *
 * @author Daniel Owens
 */
public class FieldWrapper implements Modifiable {
    public static final String HEIGHT = "height";
    public static final String WEIGHT = "weight";
    public static final String HIT_POINTS = "hp";
    public static final String EXPERIANCE = "experiance";
    public static final String HITDIE = "HITDIE";
    public static final String ATTACKBONUS = "ATTACKBONUS";
    
    private String name = null;
    private int value = 0;
    
    private FieldWrapper(){}
    
    public FieldWrapper(String field) {
        this.name = field.trim();
    }

    public FieldWrapper(String field, int value) {
        this.name = field.trim();
        this.value = value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getValue() {
        return this.value;
    }
    
    public String getName(){
        return this.name;
    }
    
    @Override public String toString() {
        return this.name+":"+String.valueOf(this.value);
    }
}